package ae.pcfc.cldos.online.web.services.security;

import java.util.Collection;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.GrantedAuthority;

import ae.pcfc.cldos.online.web.services.security.beans.LoginBean;

/**
 * 
 * @author arosa
 *
 */
public interface SecurityService {
	
	public boolean login(HttpServletRequest request, HttpServletResponse response, LoginBean loginBean);
	
	public boolean isAuthenticated();
	
	public boolean isAuthenticatedByRequest(HttpServletRequest request);
	
	public Collection<GrantedAuthority> getCurrentLoginedUserRole();
	
	public boolean isCompanyAdmin();
	
	public boolean isCompanyEmployee();
	
	public boolean isGeneralAdmin();
	
	public boolean isITAdmin();
	
	public boolean isDefaultUser();
	
	public String getLoginedUsername();
	
}
